package com.youi.entity;

import java.util.Date;

import com.youi.common.DelStatus;

import java.io.Serializable;


/**
 * 微信accesstoken
 * @author XJY
 */
public class Accesstoken implements Serializable {

	private Long id;							//
	private Date gmtCreated;							//
	private Integer delStatus;							//
	private Date gmtModify;							//
	private String accesstoken;							//微信token
	private String expiresIn;							//接口调用凭证时间

    public Accesstoken(){

    }

    public Accesstoken(Long id,Date gmtCreated,Integer delStatus,Date gmtModify) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
    }


    public Accesstoken(Long id,Date gmtCreated,Integer delStatus,Date gmtModify,String accesstoken,String expiresIn) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
       this.accesstoken=accesstoken;
       this.expiresIn=expiresIn;
    }
    
    public Accesstoken(String accesstoken,String expiresIn) {
        this.gmtCreated=new Date();
        this.delStatus=DelStatus.NODEL;
        this.gmtModify=gmtCreated;
        this.accesstoken=accesstoken;
        this.expiresIn=expiresIn;
     }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setAccesstoken(String accesstoken){
		this.accesstoken=accesstoken;
	}

	public String getAccesstoken(){
		return accesstoken;
	}

	public void setExpiresIn(String expiresIn){
		this.expiresIn=expiresIn;
	}

	public String getExpiresIn(){
		return expiresIn;
	}

}
